package ws.very.util.lang

import javax.script.ScriptEngineManager

object ScriptEngine {
  private val manager = new ScriptEngineManager();
  def apply(name: String) = manager.getEngineByName(name);

  val nashorn = apply("nashorn")
  
  def engineFactories=manager.getEngineFactories
  
}